package com.proyecto.estavoley;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class PrincipalActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		final ImageView btnEntrada = (ImageView) findViewById(R.id.botonEntrada);

		btnEntrada.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// Creamos el Intent
				Intent intent = new Intent(PrincipalActivity.this,
						MenuPrincipal.class);

				// Iniciamos la actividad
				startActivity(intent);

			}
		});
	}
}